package top.api.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.api.common.ResponseResult;
import top.api.service.LinkService;

@RestController
@RequestMapping("/link")
@Api(tags = "友链")
public class LinkController {
    @Autowired
    private LinkService linkService;

    /**
     * 查询所有友链
     * @return
     */
    @GetMapping("/getAllLink")
    @ApiOperation("查询所有友链")
    public ResponseResult getAllLink(){
       return linkService.getAllLink();
    }
}
